package weaver.aiyh_pcn.async_organization.model;

import org.jetbrains.annotations.NotNull;

/**
 * @author EBU7-dev1-ayh
 * @create 2021/7/20 0020 17:09
 * 员工实体类
 */

public class Employee  implements Comparable<Employee>{
	/**员工id*/
	private Long UserID;
	/**名 （英文）*/
	private String FIRSTNAMEEN;
	/**姓 （英文）*/
	private String LASTNAMEEN;
	/**中文姓名 */
	private String USERNAMECN;
	/**员工编号*/
	private String USERCODE;
	/**岗位id*/
	private Long JOBCODEID;
	/**部门id*/
	private Long DEPARTMENTID;
	/**部门名称*/
	private String DEPARTMENTNAME;
	/*成本中心编码*/
	private String COSTCENTERCODE;
	/**邮箱*/
	private String EMAIL;
	/**公司实体*/
	private String ORGANIZATION;
	/**电话号*/
	private String MOBILENO;
	/**座机号*/
	private String TEL;
	/**英文名*/
	private String Preferred_Name;

	public String getValue(String fieldName){
		if("UserID".equals(fieldName)){
			return String.valueOf(this.getUserID());
		}
		if("FIRSTNAMEEN".equals(fieldName)){
			return this.getFIRSTNAMEEN();
		}
		if("LASTNAMEEN".equals(fieldName)){
			return this.getLASTNAMEEN();
		}
		if("USERNAMECN".equals(fieldName)){
			return this.getUSERNAMECN();
		}
		if("USERCODE".equals(fieldName)){
			return this.getUSERCODE();
		}
		if("JOBCODEID".equals(fieldName)){
			return String.valueOf(this.getJOBCODEID());
		}
		if("DEPARTMENTID".equals(fieldName)){
			return String.valueOf(this.getDEPARTMENTID());
		}
		if("DEPARTMENTNAME".equals(fieldName)){
			return this.getDEPARTMENTNAME();
		}
		if("COSTCENTERCODE".equals(fieldName)){
			return this.getCOSTCENTERCODE();
		}
		if("EMAIL".equals(fieldName)){
			return this.getEMAIL();
		}
		if("ORGANIZATION".equals(fieldName)){
			return this.getORGANIZATION();
		}
		if("MOBILENO".equals(fieldName)){
			return this.getMOBILENO();
		}
		if("TEL".equals(fieldName)){
			return this.getTEL();
		}
		if("Preferred_Name".equals(fieldName)){
			return this.getPreferred_Name();
		}
		return null;
	}

	public Employee() {
	}

	@Override
	public String toString() {
		return "Employee{" +
				"UserID='" + UserID + '\'' +
				", FIRSTNAMEEN='" + FIRSTNAMEEN + '\'' +
				", LASTNAMEEN='" + LASTNAMEEN + '\'' +
				", USERNAMECN='" + USERNAMECN + '\'' +
				", USERCODE='" + USERCODE + '\'' +
				", JOBCODEID='" + JOBCODEID + '\'' +
				", DEPARTMENTID='" + DEPARTMENTID + '\'' +
				", DEPARTMENTNAME='" + DEPARTMENTNAME + '\'' +
				", COSTCENTERCODE='" + COSTCENTERCODE + '\'' +
				", EMAIL='" + EMAIL + '\'' +
				", ORGANIZATION='" + ORGANIZATION + '\'' +
				", MOBILENO='" + MOBILENO + '\'' +
				", TEL='" + TEL + '\'' +
				", Preferred_Name='" + Preferred_Name + '\'' +
				'}';
	}

	public Employee(Long userID, String FIRSTNAMEEN, String LASTNAMEEN, String USERNAMECN, String USERCODE, Long JOBCODEID, Long DEPARTMENTID, String DEPARTMENTNAME, String COSTCENTERCODE, String EMAIL, String ORGANIZATION, String MOBILENO, String TEL, String preferred_Name) {
		UserID = userID;
		this.FIRSTNAMEEN = FIRSTNAMEEN;
		this.LASTNAMEEN = LASTNAMEEN;
		this.USERNAMECN = USERNAMECN;
		this.USERCODE = USERCODE;
		this.JOBCODEID = JOBCODEID;
		this.DEPARTMENTID = DEPARTMENTID;
		this.DEPARTMENTNAME = DEPARTMENTNAME;
		this.COSTCENTERCODE = COSTCENTERCODE;
		this.EMAIL = EMAIL;
		this.ORGANIZATION = ORGANIZATION;
		this.MOBILENO = MOBILENO;
		this.TEL = TEL;
		Preferred_Name = preferred_Name;
	}

	public Long getUserID() {
		return UserID;
	}

	public void setUserID(Long userID) {
		UserID = userID;
	}

	public String getFIRSTNAMEEN() {
		return FIRSTNAMEEN;
	}

	public void setFIRSTNAMEEN(String FIRSTNAMEEN) {
		this.FIRSTNAMEEN = FIRSTNAMEEN;
	}

	public String getLASTNAMEEN() {
		return LASTNAMEEN;
	}

	public void setLASTNAMEEN(String LASTNAMEEN) {
		this.LASTNAMEEN = LASTNAMEEN;
	}

	public String getUSERNAMECN() {
		return USERNAMECN;
	}

	public void setUSERNAMECN(String USERNAMECN) {
		this.USERNAMECN = USERNAMECN;
	}

	public String getUSERCODE() {
		return USERCODE;
	}

	public void setUSERCODE(String USERCODE) {
		this.USERCODE = USERCODE;
	}

	public Long getJOBCODEID() {
		return JOBCODEID;
	}

	public void setJOBCODEID(Long JOBCODEID) {
		this.JOBCODEID = JOBCODEID;
	}

	public Long getDEPARTMENTID() {
		return DEPARTMENTID;
	}

	public void setDEPARTMENTID(Long DEPARTMENTID) {
		this.DEPARTMENTID = DEPARTMENTID;
	}

	public String getDEPARTMENTNAME() {
		return DEPARTMENTNAME;
	}

	public void setDEPARTMENTNAME(String DEPARTMENTNAME) {
		this.DEPARTMENTNAME = DEPARTMENTNAME;
	}

	public String getCOSTCENTERCODE() {
		return COSTCENTERCODE;
	}

	public void setCOSTCENTERCODE(String COSTCENTERCODE) {
		this.COSTCENTERCODE = COSTCENTERCODE;
	}

	public String getEMAIL() {
		return EMAIL;
	}

	public void setEMAIL(String EMAIL) {
		this.EMAIL = EMAIL;
	}

	public String getORGANIZATION() {
		return ORGANIZATION;
	}

	public void setORGANIZATION(String ORGANIZATION) {
		this.ORGANIZATION = ORGANIZATION;
	}

	public String getMOBILENO() {
		return MOBILENO;
	}

	public void setMOBILENO(String MOBILENO) {
		this.MOBILENO = MOBILENO;
	}

	public String getTEL() {
		return TEL;
	}

	public void setTEL(String TEL) {
		this.TEL = TEL;
	}

	public String getPreferred_Name() {
		return Preferred_Name;
	}

	public void setPreferred_Name(String preferred_Name) {
		Preferred_Name = preferred_Name;
	}




	@Override
	public int compareTo(@NotNull Employee o) {
		return new Long(this.JOBCODEID - o.getJOBCODEID()).intValue();
	}
}
